package cn.edu.imau.zy.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import cn.edu.imau.zy.common.core.entity.teacher.TcTeacher;
import cn.edu.imau.zy.system.dto.ClassTeacher;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 教师信息Mapper接口
 * 
 * @author wyz
 * @date 2020-06-23
 */
public interface TcTeacherMapper  extends BaseMapper<TcTeacher>
{
    /**
     * 查询教师信息
     * 
     * @param teacherId 教师信息ID
     * @return 教师信息
     */
    public TcTeacher selectTcTeacherById(Long teacherId);

    /**
     * 查询教师信息列表
     * 
     * @param tcTeacher 教师信息
     * @return 教师信息集合
     */
    public List<TcTeacher> selectTcTeacherList(TcTeacher tcTeacher);

    /**
     * 新增教师信息
     * 
     * @param tcTeacher 教师信息
     * @return 结果
     */
    public int insertTcTeacher(TcTeacher tcTeacher);

    /**
     * 修改教师信息
     * 
     * @param tcTeacher 教师信息
     * @return 结果
     */
    public int updateTcTeacher(TcTeacher tcTeacher);

    /**
     * 删除教师信息
     * 
     * @param teacherId 教师信息ID
     * @return 结果
     */
    public int deleteTcTeacherById(Long teacherId);

    /**
     * 批量删除教师信息
     * 
     * @param teacherIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteTcTeacherByIds(String[] teacherIds);

    List<TcTeacher> getNoLoginList();

    List<ClassTeacher> forClassesList(@Param("params") Map<String, Object> params);
}
